﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Crazy_Crafter
{
    public partial class ProcessBox : Form
    {
        public int Index;

        public ProcessBox(Process[] P)
        {
            InitializeComponent();
            foreach (Process pr in P)
            {
                MemoryManager m = new MemoryManager(pr);
                listBox1.Items.Add("[" + pr.Id.ToString() + "] " + m.GetCharacterName());
            }
        }

        public ProcessBox()
        {
            InitializeComponent();
        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            Index = listBox1.SelectedIndex;
        }
    }
}
